package com.gray.util;

public class BasePathUtil {
	private static String seperator = System.getProperty("file.separator");

	/**
	 * 获取根路劲
	 * @return
	 */
	public static String getImgBasePath() {
		String os = System.getProperty("os.name");
		String basePath = "";
		if (os.toLowerCase().startsWith("win")) {
			basePath = "E:/file/image/";
		} else {
			basePath = "/root/file/image/";
		}
		basePath = basePath.replace("/", seperator);
		return basePath;
	}

//	public static String getShopImagePath(long shopId) {
//		String imagePath = "/upload/images/item/shop/" + shopId + "/";
//		return imagePath.replace("/", seperator);
//	}
}
